import request from '@/utils/request'

// 查询库存信息列表
export function listWhinfo(query) {
  return request({
    url: '/bill/whinfo/list',
    method: 'get',
    params: query
  })
}

// 查询库存信息列表
export function findDetailPC(query) {
  return request({
    url: '/bill/whinfo/findDetailPC',
    method: 'get',
    params: query
  })
}

// 查询库存信息详细
export function getWhinfo(autoid) {
  return request({
    url: '/bill/whinfo/' + autoid,
    method: 'get'
  })
}

// 新增库存信息
export function addWhinfo(data) {
  return request({
    url: '/bill/whinfo',
    method: 'post',
    data: data
  })
}

// 修改库存信息
export function updateWhinfo(data) {
  return request({
    url: '/bill/whinfo',
    method: 'put',
    data: data
  })
}

// 删除库存信息
export function delWhinfo(autoid) {
  return request({
    url: '/bill/whinfo/' + autoid,
    method: 'delete'
  })
}

// 导出库存信息
export function exportWhinfo(query) {
  return request({
    url: '/bill/whinfo/export',
    method: 'get',
    params: query
  })
}
